﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;

namespace SDT.Admin.ViewModels
{
    public class ArticleIndexViewModel
    {
        public IPagedList<Article> Articles;
        public List<ArticleCategory> Categories = new List<ArticleCategory>();
        public Dictionary<object, object> HotStatus = new Dictionary<object, object>();
        public Dictionary<object, object> PubStatus = new Dictionary<object, object>();
        public int CurrentCat;
        public int CurrentHotStatus;
        public int CurrentPubStatus;
        public string Keyword;
        public string ImageRootUrl;
    }
    public class ArticleEditViewModel
    {
        public Article Article { get; set; }
        public List<ArticleCategory> Categories { get;set; }
        public List<Event> Events { get; set; }
        public List<Company> Companys { get; set; }
        public Event CurrentEvent { get; set; }
        public Company CurrentCompany { get; set; }
        public string ImageRootUrl { get; set; }
        public string FileRootURL { get; set; }
        public List<string> ListFile { get; set; }
        public List<Tag> Tags { get; set; }
        public List<int> ListTagID { get; set; }
        public List<int> ListDocumentID { get; set; }
        public List<Document> Documents { get; set; }
        public string CurrentListTag { get; set; }
    }
}
